package com.ruoyi.yun.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunUserRightsfunctionMapper;
import com.ruoyi.yun.domain.YunUserRightsfunction;
import com.ruoyi.yun.service.IYunUserRightsfunctionService;

/**
 * 权限功能管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunUserRightsfunctionServiceImpl implements IYunUserRightsfunctionService 
{
    @Autowired
    private YunUserRightsfunctionMapper yunUserRightsfunctionMapper;

    /**
     * 查询权限功能管理
     * 
     * @param id 权限功能管理主键
     * @return 权限功能管理
     */
    @Override
    public YunUserRightsfunction selectYunUserRightsfunctionById(Long id)
    {
        return yunUserRightsfunctionMapper.selectYunUserRightsfunctionById(id);
    }

    /**
     * 查询权限功能管理列表
     * 
     * @param yunUserRightsfunction 权限功能管理
     * @return 权限功能管理
     */
    @Override
    public List<YunUserRightsfunction> selectYunUserRightsfunctionList(YunUserRightsfunction yunUserRightsfunction)
    {
        return yunUserRightsfunctionMapper.selectYunUserRightsfunctionList(yunUserRightsfunction);
    }

    /**
     * 新增权限功能管理
     * 
     * @param yunUserRightsfunction 权限功能管理
     * @return 结果
     */
    @Override
    public int insertYunUserRightsfunction(YunUserRightsfunction yunUserRightsfunction)
    {
        return yunUserRightsfunctionMapper.insertYunUserRightsfunction(yunUserRightsfunction);
    }

    /**
     * 修改权限功能管理
     * 
     * @param yunUserRightsfunction 权限功能管理
     * @return 结果
     */
    @Override
    public int updateYunUserRightsfunction(YunUserRightsfunction yunUserRightsfunction)
    {
        yunUserRightsfunction.setUpdateTime(DateUtils.getNowDate());
        return yunUserRightsfunctionMapper.updateYunUserRightsfunction(yunUserRightsfunction);
    }

    /**
     * 批量删除权限功能管理
     * 
     * @param ids 需要删除的权限功能管理主键
     * @return 结果
     */
    @Override
    public int deleteYunUserRightsfunctionByIds(Long[] ids)
    {
        return yunUserRightsfunctionMapper.deleteYunUserRightsfunctionByIds(ids);
    }

    /**
     * 删除权限功能管理信息
     * 
     * @param id 权限功能管理主键
     * @return 结果
     */
    @Override
    public int deleteYunUserRightsfunctionById(Long id)
    {
        return yunUserRightsfunctionMapper.deleteYunUserRightsfunctionById(id);
    }
}
